Repository navigation
feat: a project can have a lead chat - #970
Merged
Merged
Conversation
Each project can now name one thread its lead chat: the place to drop work for the project, whose agent coordinates threads for it (docs/design/lead-chat.md, piece 1 of 4). The project keeps a pointer to its lead (`leadThreadId`, migration 116), set with `project.lead.set` and carried on the existing project update event. Archiving or deleting the lead ends it in the same decision; the lead can't be put back under a parent or moved to another computer, and a pointer at an archived or missing thread reads as no lead. The lead's agent hears its role at the start of every turn, and may start 10 threads and send 20 messages per user message instead of 5 and 10. In the app the lead is set and unset from the thread menu, the project menu (Open or New lead chat), the command palette and a keybinding command. Its row sorts first in the sidebar with a flag and never wraps up on its own; the chat shows a Lead chat label and invites work in the composer. The app guide has a lead chat topic.
KeybindingCommand is a closed set that older clients decode strictly. A user rule naming navigate.leadChat would make an older client reject the whole keybinding list, and with it the computer's config. Go to lead chat stays in the command palette.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Running several agents on one project means doing the coordinating yourself: deciding which thread takes what, and checking back on each one. There was no single place to hand work to a project.
Change
Any thread can be made its project's lead chat, one per project, from the thread menu, the project menu or the command palette. The lead is told on every turn that it coordinates: it answers small questions itself and starts threads for the work, which report back as threads an agent starts do today.
leadThreadIdon the project (migration 116, one nullable column), set by a newproject.lead.setcommand. Archive and delete clear it; moving the lead to another computer is refused.docs/design/lead-chat.md. This is piece 1; the others are stacked on top.Checks
fmt, lint, typecheck, the full server suite and the full browser suite pass. Reviewed by GPT-6.1 Sol: four findings, three fixed. Left: an agent that cannot use the thread tools can still be made the lead (the app cannot know before its session starts), and is told to say it cannot coordinate.